forked from create-dmg/create-dmg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 885 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Makefile for Cowsay
PACKAGE_TARNAME = create-dmg
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
datarootdir = ${prefix}/share
datadir = ${datarootdir}
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
sysconfdir = ${prefix}/etc
mandir=${datarootdir}/man
srcdir = .
SHELL = /bin/sh
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = ${INSTALL} -m 644
.PHONY: install uninstall
install: create-dmg
$(INSTALL) -d $(DESTDIR)$(prefix)
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) create-dmg $(DESTDIR)$(bindir)/create-dmg
$(INSTALL) -d $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
cp -R support $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
cp -R examples $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
cp -R tests $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
uninstall:
rm -f $(DESTDIR)$(bindir)/create-dmg
rm -rf $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)