Skip to content

Commit

Permalink
Place .PHONY declarations before each rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gapan committed May 27, 2016
1 parent b9de389 commit 20c93f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -3,33 +3,39 @@ DESTDIR ?= /
PACKAGE_LOCALE_DIR ?= $(PREFIX)/share/locale
PIXMAPS_DIR ?= $(PREFIX)/share/pixmaps

.PHONY: all
all: mo desktop

.PHONY: mo
mo:
for i in `ls po/*.po`; do \
msgfmt $$i -o `echo $$i | sed "s/\.po//"`.mo; \
done

.PHONY: desktop
desktop:
intltool-merge po/ -d -u salix-update-notifier.desktop.in salix-update-notifier.desktop


.PHONY: updatepo
updatepo:
for i in `ls po/*.po`; do \
msgmerge -UNs $$i po/salix-update-notifier.pot; \
done

.PHONY: pot
pot:
intltool-extract --type="gettext/ini" salix-update-notifier.desktop.in
xgettext --from-code=utf-8 -L shell -o po/salix-update-notifier.pot src/salix-update-notifier
xgettext --from-code=utf-8 -j -L C -kN_ -o po/salix-update-notifier.pot salix-update-notifier.desktop.in.h
rm salix-update-notifier.desktop.in.h

.PHONY: clean
clean:
rm -f salix-update-notifier.desktop
rm -f po/*.mo
rm -f po/*.po~

.PHONY: install
install:
install -d -m 755 $(DESTDIR)/$(PREFIX)/bin/
install -d -m 755 $(DESTDIR)/etc/xdg/autostart
Expand All @@ -47,5 +53,3 @@ install:
$(DESTDIR)/$(PACKAGE_LOCALE_DIR)/$${i}/LC_MESSAGES/salix-update-notifier.mo; \
done


.PHONY: all man mo updatepo pot clean install

0 comments on commit 20c93f4

Please sign in to comment.