Mercurial > projects > pk-update-icon
annotate Makefile @ 53:7de92a24e86c
Update email address
author | Guido Berhoerster <guido+pk-update-icon@berhoerster.name> |
---|---|
date | Sat, 25 Jul 2015 17:25:00 +0200 |
parents | f119075975e8 |
children | 74da2bf0907b |
rev | line source |
---|---|
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
1 # |
53
7de92a24e86c
Update email address
Guido Berhoerster <guido+pk-update-icon@berhoerster.name>
parents:
51
diff
changeset
|
2 # Copyright (C) 2014 Guido Berhoerster <guido+pk-update-icon@berhoerster.name> |
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
3 # |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
4 # Licensed under the GNU General Public License Version 2 |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
5 # |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
6 # This program is free software; you can redistribute it and/or modify |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
7 # it under the terms of the GNU General Public License as published by |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
8 # the Free Software Foundation; either version 2 of the License, or |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
9 # (at your option) any later version. |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
10 # |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
14 # GNU General Public License for more details. |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
15 # |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
16 # You should have received a copy of the GNU General Public License |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
17 # along with this program; if not, write to the Free Software |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
19 # |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
20 |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
21 PACKAGE = pk-update-icon |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
22 APP_NAME = org.opensuse.pk-update-icon |
51 | 23 VERSION = 2 |
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
24 DISTNAME := $(PACKAGE)-$(VERSION) |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
25 |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
26 # gcc, clang, icc |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
27 MAKEDEPEND.c = $(CC) -MM $(CFLAGS) $(CPPFLAGS) |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
28 # Sun/Solaris Studio |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
29 #MAKEDEPEND.c = $(CC) -xM1 $(CFLAGS) $(CPPFLAGS) |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
30 # X makedepend |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
31 #MAKEDEPEND.c = makedepend -f- -Y -- $(CFLAGS) $(CPPFLAGS) -- |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
32 INSTALL := install |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
33 INSTALL.exec := $(INSTALL) -D -m 0755 |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
34 INSTALL.data := $(INSTALL) -D -m 0644 |
36
82a31628a26d
Use pax to generate tarballs
Guido Berhoerster <gber@opensuse.org>
parents:
35
diff
changeset
|
35 PAX := pax |
22
b18c70b2a6ca
add dist target to Makefile
Guido Berhoerster <guido@berhoerster.name>
parents:
16
diff
changeset
|
36 GZIP := gzip |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
37 SED := sed |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
38 MSGFMT := msgfmt |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
39 INTLTOOL_UPDATE := intltool-update |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
40 INTLTOOL_MERGE := intltool-merge |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
41 XSLTPROC := xsltproc |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
42 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl |
46
aa5d3752091d
Make the update viewer command configurable
Guido Berhoerster <gber@opensuse.org>
parents:
41
diff
changeset
|
43 UPDATE_VIEWER_COMMAND = /usr/bin/gpk-update-viewer |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
44 |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
45 define generate-manpage-rule = |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
46 %.$(1): %.$(1).xml |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
47 $$(XSLTPROC) \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
48 --xinclude \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
49 --stringparam package $$(PACKAGE) \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
50 --stringparam version $$(VERSION)\ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
51 docbook-update-source-data.xsl $$< | \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
52 $$(XSLTPROC) \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
53 --xinclude \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
54 $$(DOCBOOK5_MANPAGES_FLAGS) \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
55 --output $$@ \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
56 $$(DOCBOOK5_MANPAGES_STYLESHEET) \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
57 - |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
58 endef |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
59 |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
60 DESTDIR ?= |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
61 prefix ?= /usr/local |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
62 bindir ?= $(prefix)/bin |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
63 datadir ?= $(prefix)/share |
10 | 64 mandir ?= $(datadir)/man |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
65 localedir ?= $(datadir)/locale |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
66 sysconfdir ?= /etc |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
67 xdgautostartdir ?= $(sysconfdir)/xdg/autostart |
0 | 68 |
14
64f05992d8ec
GObject-based rewrite
Guido Berhoerster <guido@berhoerster.name>
parents:
13
diff
changeset
|
69 OBJS = main.o pkui-icon.o pkui-backend.o |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
70 MANPAGES = $(PACKAGE).1 |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
71 AUTOSTART_FILE = $(PACKAGE).desktop |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
72 MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po)) |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
73 POTFILE = po/$(PACKAGE).pot |
9
0e50d3652326
use libunique to ensure that only a single instance of pk-update-icon can be run
Guido Berhoerster <guido@berhoerster.name>
parents:
8
diff
changeset
|
74 CPPFLAGS := $(shell pkg-config --cflags gtk+-2.0 unique-1.0 libnotify packagekit-glib2) \ |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
75 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE \ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
76 -DPACKAGE="\"$(PACKAGE)\"" \ |
9
0e50d3652326
use libunique to ensure that only a single instance of pk-update-icon can be run
Guido Berhoerster <guido@berhoerster.name>
parents:
8
diff
changeset
|
77 -DAPP_NAME=\"$(APP_NAME)\" \ |
16
7af115023d5a
add CLI, make delay and interval configurable
Guido Berhoerster <guido@berhoerster.name>
parents:
15
diff
changeset
|
78 -DVERSION=\"$(VERSION)\" \ |
46
aa5d3752091d
Make the update viewer command configurable
Guido Berhoerster <gber@opensuse.org>
parents:
41
diff
changeset
|
79 -DLOCALEDIR="\"$(localedir)\"" \ |
aa5d3752091d
Make the update viewer command configurable
Guido Berhoerster <gber@opensuse.org>
parents:
41
diff
changeset
|
80 -DUPDATE_VIEWER_COMMAND="\"$(UPDATE_VIEWER_COMMAND)\"" |
9
0e50d3652326
use libunique to ensure that only a single instance of pk-update-icon can be run
Guido Berhoerster <guido@berhoerster.name>
parents:
8
diff
changeset
|
81 LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2) |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
82 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
83 --stringparam man.copyright.section.enabled 0 |
0 | 84 |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
85 .DEFAULT_TARGET = all |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
86 |
22
b18c70b2a6ca
add dist target to Makefile
Guido Berhoerster <guido@berhoerster.name>
parents:
16
diff
changeset
|
87 .PHONY: all clean clobber dist install |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
88 |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
89 all: $(PACKAGE) $(MANPAGES) $(MOFILES) $(AUTOSTART_FILE) |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
90 |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
91 $(PACKAGE): $(OBJS) |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
92 $(LINK.o) $^ $(LDLIBS) -o $@ |
0 | 93 |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
94 $(POTFILE): po/POTFILES.in |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
95 cd po/ && $(INTLTOOL_UPDATE) --pot --gettext-package="$(PACKAGE)" |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
96 |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
97 pot: $(POTFILE) |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
98 |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
99 update-po: $(POTFILE) |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
100 cd po/ && for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
101 $(INTLTOOL_UPDATE) --dist --gettext-package="$(PACKAGE)" \ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
102 $${lang}; \ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
103 done |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
104 |
0 | 105 %.o: %.c |
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
106 $(MAKEDEPEND.c) $< | $(SED) -f deps.sed >$*.d |
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
107 $(COMPILE.c) -o $@ $< |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
108 |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
109 $(foreach section,1 2 3 4 5 6 7 8 9,$(eval $(call generate-manpage-rule,$(section)))) |
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
110 |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
111 %.desktop: %.desktop.in $(MOFILES) |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
112 $(INTLTOOL_MERGE) --desktop-style --utf8 po $< $@ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
113 |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
114 %.mo: %.po |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
115 $(MSGFMT) -o $@ $< |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
116 |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
117 install: |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
118 $(INSTALL.exec) $(PACKAGE) $(DESTDIR)$(bindir)/$(PACKAGE) |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
119 $(INSTALL.data) $(AUTOSTART_FILE) \ |
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
120 $(DESTDIR)$(xdgautostartdir)/$(AUTOSTART_FILE) |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
121 for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \ |
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
122 $(INSTALL.data) po/$${lang}.mo \ |
13
dca97330d81e
fix the locale path
Guido Berhoerster <guido@berhoerster.name>
parents:
10
diff
changeset
|
123 $(DESTDIR)$(localedir)/$${lang}/LC_MESSAGES/$(PACKAGE).mo; \ |
8
58a3312a1c59
add internationalization support
Guido Berhoerster <guido@berhoerster.name>
parents:
7
diff
changeset
|
124 done |
10 | 125 $(INSTALL.data) $(PACKAGE).1 \ |
126 $(DESTDIR)$(mandir)/man1/$(PACKAGE).1 | |
0 | 127 |
128 clean: | |
37
7e44a0a8dc2c
Convert the manpage to DocBook V5.0
Guido Berhoerster <gber@opensuse.org>
parents:
36
diff
changeset
|
129 rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(MANPAGES) $(AUTOSTART_FILE) |
7
56a7ed833d0a
allow overriding CFLAGS
Guido Berhoerster <guido@berhoerster.name>
parents:
6
diff
changeset
|
130 |
15
c7eac2574c76
add clobber target
Guido Berhoerster <guido@berhoerster.name>
parents:
14
diff
changeset
|
131 clobber: clean |
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
132 rm -f $(patsubst %.o,%.d,$(OBJS)) |
15
c7eac2574c76
add clobber target
Guido Berhoerster <guido@berhoerster.name>
parents:
14
diff
changeset
|
133 |
22
b18c70b2a6ca
add dist target to Makefile
Guido Berhoerster <guido@berhoerster.name>
parents:
16
diff
changeset
|
134 dist: clobber |
36
82a31628a26d
Use pax to generate tarballs
Guido Berhoerster <gber@opensuse.org>
parents:
35
diff
changeset
|
135 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \ |
82a31628a26d
Use pax to generate tarballs
Guido Berhoerster <gber@opensuse.org>
parents:
35
diff
changeset
|
136 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz |
22
b18c70b2a6ca
add dist target to Makefile
Guido Berhoerster <guido@berhoerster.name>
parents:
16
diff
changeset
|
137 |
35
b84b4ae937e3
Fix automatic dependency generation and improve portability
Guido Berhoerster <gber@opensuse.org>
parents:
32
diff
changeset
|
138 -include $(patsubst %.o,%.d,$(OBJS)) |