forked from cromer/pamac-classic
Modularize the Makefiles.
* It's a good practice to put the main target on top, since it's the first one that is called when calling just "make". That's why "resources", "binaries" and "gettext" were moved up in their Makefile's. * Added a "clean" target for each subdirectories so that they are a bit more autonomous. * Using "&&" instead of ";" when changing directory because if a directory name is changed, we get into an infinite loop.
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,14 +1,13 @@
|
||||
|
||||
all:
|
||||
cd resources; make resources
|
||||
cd src; make binaries
|
||||
cd po; make gettext
|
||||
cd resources && make resources
|
||||
cd src && make binaries
|
||||
cd po && make gettext
|
||||
|
||||
clean:
|
||||
rm -f src/*.c src/pamac-refresh src/pamac-daemon src/pamac-tray src/pamac-updater src/pamac-manager src/pamac-install
|
||||
rm -f resources/*.c
|
||||
rm -rf po/locale
|
||||
rm -f po/*.mo
|
||||
cd resources && make clean
|
||||
cd src && make clean
|
||||
cd po && make clean
|
||||
rm -f data/polkit/org.manjaro.pamac.policy
|
||||
|
||||
install:
|
||||
|
Reference in New Issue
Block a user