@@ -12,13 +12,18 @@ PYTHON_LIBS=Corrections
12
12
PYTHON_SITE =python$(PYTHON_VERSION ) /site-packages
13
13
14
14
MAN_FILES = $(shell grep -l Parse_Options bin/* | xargs -i echo {}.1)
15
- EXEC_FILES = $(patsubst src/% .c,bin/ % ,$(wildcard src/* .c) )
15
+ EXEC_FILES = $(patsubst src/% .c,% ,$(wildcard src/* .c) )
16
16
SCRIPT_FILES = AddUser AttachProgram DeduceName FindPackage GoboPath install PrioritiseUpdates ScriptFunctions UnversionExecutables VersionExecutables Alien AugmentCommandNotFoundDatabase Dependencies FindQuick GrepQuick InstallPackage ProblemReport SignProgram UpdateKdeRecipe which Alien-Cabal CheckDependants DescribeProgram FixAttributes GrepReplace KillProcess RemoveBroken SuggestDuplicates UpdateSettings xmlcatalog Alien-CPAN CheckDependencies DetachProgram FixDirReferences GuessLatest ListProgramFiles RemoveEmpty SuggestUpdates UpdateXorgRecipe Alien-LuaRocks CleanModules DisableProgram FixInfo GuessProgramCase RemoveProgram SymlinkProgram UpgradeSystem Alien-PIP Corrections FilterColors GenBuildInformation HasCompatiblePackage MergeTree Rename SystemFind UseFlags Alien-RubyGems CreatePackage FilterLines GetAvailable Hashes NamingConventions RescueInstallPackage SystemInfo VerifyProgram
17
17
18
18
.PHONY : all clean install
19
19
20
20
all : python_all
21
21
@$(MAKE ) -C src
22
+ $(foreach EXE_FILE, $(EXEC_FILES ) , \
23
+ cp -af src/$(EXE_FILE ) bin ; \
24
+ chmod a+x bin/$(EXE_FILE ) ; \
25
+ )
26
+
22
27
23
28
python_all :
24
29
mkdir -p lib/$(PYTHON_SITE )
@@ -42,7 +47,8 @@ clean: python_clean
42
47
)
43
48
@echo " Cleaning binaries"
44
49
$(foreach EXE_FILE, $(EXEC_FILES ) , \
45
- rm -f $(EXE_FILE ) ; \
50
+ rm -f src/$(EXE_FILE ) ; \
51
+ rm -f bin/$(EXE_FILE ) ; \
46
52
)
47
53
rm -rf Resources/FileHash*
48
54
@@ -57,10 +63,6 @@ $(MAN_FILES): %.1: %
57
63
@echo " Generating man page $@ "
58
64
help2man --name=" " --source=" GoboLinux" --no-info $< --output $@
59
65
60
- $(EXEC_FILES ) : bin/% : src/%
61
- cp -af $< $@
62
- chmod a+x $@
63
-
64
66
install_manuals : manuals
65
67
$(INSTALL_DIR ) -d -m 755 $(DESTDIR ) /share/man/man1
66
68
$(foreach MAN_FILE, $(MAN_FILES ) , \
0 commit comments