diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..be3bb62 --- /dev/null +++ b/Makefile @@ -0,0 +1,54 @@ +NAME = draklive-install +VERSION = 1.34 + +dli_confdir = ${sysconfdir}/$(NAME).d +dli_sysconfigdir = $(dli_confdir)/sysconfig + +all: mageia-draklive-install.desktop draklive-install.desktop + make -C po + +install: + install -d $(dli_sysconfigdir) + make -C po install + +dist: dis +dis: clean + rm -rf ../$(NAME)-$(VERSION)*.tar* $(NAME)-$(VERSION) + @if [ -e ".svn" ]; then \ + $(MAKE) dist-svn; \ + elif [ -e ".git" ]; then \ + $(MAKE) dist-git; \ + else \ + echo "Unknown SCM (not SVN nor GIT)";\ + exit 1; \ + fi; + $(info $(NAME)-$(VERSION).tar.lzma is ready) + +dist-svn: + svn export -q -rBASE . $(NAME)-$(VERSION) + tar cfY ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION) + rm -rf $(NAME)-$(VERSION) + +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | lzma >../$(NAME)-$(VERSION).tar.lzma; + +check: + perl -cw $(NAME) + +clean: + make -C po clean + find -name '*~' -exec rm {} \; + +.PHONY: ChangeLog log changelog + +log: ChangeLog + +changelog: ChangeLog + +ChangeLog: + svn2cl --accum --authors ../../soft/common/username.xml + rm -f *.bak + +%.desktop: %.desktop.in + intltool-merge --utf8 po \$< \$@ -d -u -c intltool-merge-cache + |