Mercurial > projects > package-update-indicator
comparison Makefile @ 10:adba37525ee5
Notify about required session or system restarts
Follow all PackageKit transactions and indicate when a session or system
restart is required.
Generate enum types with glib-mkenums.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Fri, 06 Jul 2018 14:12:46 +0200 |
parents | 2477a6151087 |
children | 329aeecdd83a |
comparison
equal
deleted
inserted
replaced
9:b571e7ade208 | 10:adba37525ee5 |
---|---|
48 PAX := pax | 48 PAX := pax |
49 GZIP := gzip | 49 GZIP := gzip |
50 SED := sed | 50 SED := sed |
51 GLIB_COMPILE_SCHEMAS := $(shell pkg-config --variable=glib_compile_schemas gio-2.0) | 51 GLIB_COMPILE_SCHEMAS := $(shell pkg-config --variable=glib_compile_schemas gio-2.0) |
52 GLIB_COMPILE_RESOURCES := $(shell pkg-config --variable=glib_compile_resources gio-2.0) | 52 GLIB_COMPILE_RESOURCES := $(shell pkg-config --variable=glib_compile_resources gio-2.0) |
53 GLIB_MKENUMS := $(shell pkg-config --variable=glib_mkenums glib-2.0) | |
53 XSLTPROC := xsltproc | 54 XSLTPROC := xsltproc |
54 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl | 55 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl |
55 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ | 56 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ |
56 --stringparam man.copyright.section.enabled 0 | 57 --stringparam man.copyright.section.enabled 0 |
57 MSGFMT = msgfmt | 58 MSGFMT = msgfmt |
111 pui-settings.o \ | 112 pui-settings.o \ |
112 pui-prefs-resources.o | 113 pui-prefs-resources.o |
113 | 114 |
114 OBJS = $($(PACKAGE)_OBJS) $($(PACKAGE)-prefs_OBJS) | 115 OBJS = $($(PACKAGE)_OBJS) $($(PACKAGE)-prefs_OBJS) |
115 | 116 |
117 ENUM_DEPS = pui-backend.h \ | |
118 pui-application.h | |
119 | |
120 ENUM_HEADER = pui-types.h | |
121 | |
122 ENUM_FILES = $(ENUM_HEADER) \ | |
123 pui-types.c | |
124 | |
116 GSETTINGS_SCHEMAS = $(APPLICATION_ID).gschema.xml | 125 GSETTINGS_SCHEMAS = $(APPLICATION_ID).gschema.xml |
117 | 126 |
118 GRESOURCE_FILES = pui-prefs.gresource.xml | 127 GRESOURCE_FILES = pui-prefs.gresource.xml |
119 | 128 |
120 AUTOSTART_FILE = $(APPLICATION_ID).desktop | 129 AUTOSTART_FILE = $(APPLICATION_ID).desktop |
174 $(LINK.o) $^ $(LDLIBS) -o $@ | 183 $(LINK.o) $^ $(LDLIBS) -o $@ |
175 | 184 |
176 $(PACKAGE)-prefs: $($(PACKAGE)-prefs_OBJS) | 185 $(PACKAGE)-prefs: $($(PACKAGE)-prefs_OBJS) |
177 $(LINK.o) $^ $(LDLIBS) -o $@ | 186 $(LINK.o) $^ $(LDLIBS) -o $@ |
178 | 187 |
188 $(OBJS): $(ENUM_HEADER) | |
189 | |
190 %-types.h: %-types.h.in $(ENUM_DEPS) | |
191 $(GLIB_MKENUMS) --template $< >$@ $(filter-out $<,$^) | |
192 | |
193 %-types.c: %-types.c.in $(ENUM_DEPS) | |
194 $(GLIB_MKENUMS) --template $< >$@ $(filter-out $<,$^) | |
195 | |
179 %-resources.c: %.gresource.xml | 196 %-resources.c: %.gresource.xml |
180 $(GLIB_COMPILE_RESOURCES) --generate-dependencies $< | \ | 197 $(GLIB_COMPILE_RESOURCES) --generate-dependencies $< | \ |
181 while read -r resource_file; do \ | 198 while read -r resource_file; do \ |
182 printf '%s: %s\n' $@ "$${resource_file}"; \ | 199 printf '%s: %s\n' $@ "$${resource_file}"; \ |
183 done | 200 done |
229 $(INSTALL.data) $${manpage} \ | 246 $(INSTALL.data) $${manpage} \ |
230 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \ | 247 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \ |
231 done | 248 done |
232 | 249 |
233 clean: | 250 clean: |
234 rm -f $(PACKAGE) $(OBJS) $(AUTOSTART_FILE) $(DESKTOP_FILES) $(POTFILE) \ | 251 rm -f $(PACKAGE) $(OBJS) $(ENUM_FILES) $(AUTOSTART_FILE) \ |
235 $(MOFILES) $(MANPAGES) | 252 $(DESKTOP_FILES) $(POTFILE) $(MOFILES) $(MANPAGES) |
236 | 253 |
237 clobber: clean | 254 clobber: clean |
238 rm -f $(patsubst %.o,%.d,$(OBJS)) | 255 rm -f $(patsubst %.o,%.d,$(OBJS)) |
239 | 256 |
240 dist: clobber | 257 dist: clobber |