Makefile 2.41 KB
Newer Older
1 2
# this file maintained using git at
# ssh+git://git.debian.org/git/collab-maint/publicfile-installer.git
3 4 5

#
# Copyright (C) 2006, 2007, 2008 Joost van Baal
6
# Copyright (C) 2015 Joost van Baal-Ilić
7 8 9 10 11 12 13 14
#
# This file is free software; you can redistribute it and/or modify it under
# the terms of the GNU GPL as published by the FSF; version 3 of the License,
# or any later version. You should have received a copy of the GNU GPL along
# with this file (see COPYING); if not, check
# http://www.gnu.org/copyleft/gpl.html.
#

15
VERSION = 0.13
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

srcdir = .

INSTALL = /usr/bin/install -c
man1dir = $(mandir)/man1
INSTALL_DATA = ${INSTALL} -m 644

DISTFILES = README $(srcdir)/Makefile COPYING ChangeLog TODO $(SCRIPTS) $(etc_DATA) $(man_MANS)

bindir = ${exec_prefix}/bin
mandir = ${prefix}/man
exec_prefix = ${prefix}
mkdir_p = mkdir -p --
prefix = /usr/local

distdir = $(PACKAGE)-$(VERSION)

am__tar = tar chof - "$$tardir"

35
PACKAGE = publicfile-installer
36 37

SCRIPTS= \
38
    get-publicfile \
39
    build-publicfile
40 41

etc_DATA = \
42
    publicfile-installer.conf
43 44

man_MANS = \
45 46
    publicfile-installer.1 \
    get-publicfile.1 \
47
    build-publicfile.1
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

all:

install: $(SCRIPTS) $(man_MANS)
	test -z "$(DESTDIR)$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
	test -z "$(DESTDIR)$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
	list='$(SCRIPTS)'; for p in $$list; do \
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
          if test -f $$d$$p; then \
            $(INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$p"; \
          else :; fi; \
        done
	list='$(man_MANS)'; for p in $$list; do \
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
          if test -f $$d$$p; then \
            $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(man1dir)/$$p"; \
          else :; fi; \
        done


uninstall:
	list='$(SCRIPTS)'; for p in $$list; do \
          rm -f "$(DESTDIR)$(bindir)/$$p"; \
        done

clean:

COPYING:
Joost van Baal-Ilić's avatar
Joost van Baal-Ilić committed
76
	cp --preserve=all --dereference /usr/share/common-licenses/GPL $@
77 78 79 80 81 82 83 84 85 86 87 88 89

distdir: $(DISTFILES)
	rm -rf $(distdir)
	mkdir $(distdir)
	list='$(DISTFILES)'; for file in $$list; do \
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
          cp -pR $$d/$$file $(distdir)$$dir; \
        done

dist: distdir
	tardir=$(distdir) && $(am__tar) | gzip -c >$(distdir).tar.gz
	ls -l $(distdir).tar.gz

Joost van Baal-Ilić's avatar
Joost van Baal-Ilić committed
90 91 92
publish:
	scp $(distdir).tar.gz beskar.mdcc.cx:www/mdcc.cx/pub/publicfile

93
.PHONY: all dist distdir install uninstall clean