forked from cromer/pamac-classic
commit
b8f93bc0a5
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ data/polkit/org.manjaro.pamac.policy
|
||||
po/*.mo
|
||||
po/*~
|
||||
po/locale
|
||||
*.swp
|
||||
|
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:
|
||||
|
10
po/Makefile
10
po/Makefile
@ -3,10 +3,14 @@ MSGLANGS=$(notdir $(wildcard *.po))
|
||||
|
||||
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
|
||||
|
||||
gettext: $(MSGOBJS)
|
||||
itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo)
|
||||
|
||||
clean:
|
||||
rm -rf locale
|
||||
rm -f *.mo
|
||||
|
||||
locale/%/LC_MESSAGES/pamac.mo: %.po
|
||||
msgfmt -c -o $*.mo $*.po
|
||||
mkdir -p $(dir $@)
|
||||
cp $*.mo $(dir $@)pamac.mo
|
||||
|
||||
gettext: $(MSGOBJS)
|
||||
itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo)
|
||||
|
@ -33,6 +33,11 @@ INSTALLER_RESOURCES_FILES = progress_dialog.ui \
|
||||
transaction_sum_dialog.ui \
|
||||
transaction_info_dialog.ui
|
||||
|
||||
resources: manager_resources.c updater_resources.c installer_resources.c
|
||||
|
||||
clean:
|
||||
rm -f *.c
|
||||
|
||||
manager_resources.c: $(MANAGER_GRESOURCE_FILE) $(MANAGER_RESOURCES_FILES)
|
||||
glib-compile-resources $(MANAGER_GRESOURCE_FILE) --target=manager_resources.c --generate-source
|
||||
|
||||
@ -41,5 +46,3 @@ updater_resources.c: $(UPDATER_GRESOURCE_FILE) $(UPDATER_RESOURCES_FILES)
|
||||
|
||||
installer_resources.c: $(INSTALLER_GRESOURCE_FILE) $(INSTALLER_RESOURCES_FILES)
|
||||
glib-compile-resources $(INSTALLER_GRESOURCE_FILE) --target=installer_resources.c --generate-source
|
||||
|
||||
resources: manager_resources.c updater_resources.c installer_resources.c
|
||||
|
@ -29,6 +29,11 @@ DIALOGS_FILES = choose_provider_dialog.vala \
|
||||
preferences_dialog.vala \
|
||||
progress_dialog.vala
|
||||
|
||||
binaries: pamac-refresh pamac-daemon pamac-tray pamac-updater pamac-manager pamac-install
|
||||
|
||||
clean:
|
||||
rm -f *.c pamac-refresh pamac-daemon pamac-tray pamac-updater pamac-manager pamac-install
|
||||
|
||||
pamac-refresh: refresh.vala
|
||||
valac -o pamac-refresh \
|
||||
--pkg=gio-2.0 \
|
||||
@ -100,5 +105,3 @@ pamac-install: ../vapi/libalpm.vapi $(COMMON_SOURCES) $(DIALOGS_FILES) ../resour
|
||||
mirrors_config.vala \
|
||||
transaction.vala \
|
||||
installer.vala
|
||||
|
||||
binaries: pamac-refresh pamac-daemon pamac-tray pamac-updater pamac-manager pamac-install
|
||||
|
Loading…
Reference in New Issue
Block a user