diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-07-27 12:48:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 12:48:15 +0000 |
commit | 701c0282b8b0eb1bb76bb6b0246f4a2a93e966b6 (patch) | |
tree | 5949a97892bf0148c350a1eea7b220a6955d98b0 /Makefile | |
parent | fnetlock: fix unused bw variable warning (diff) | |
parent | build: make asc use config.sh (diff) | |
download | firejail-701c0282b8b0eb1bb76bb6b0246f4a2a93e966b6.tar.gz firejail-701c0282b8b0eb1bb76bb6b0246f4a2a93e966b6.tar.zst firejail-701c0282b8b0eb1bb76bb6b0246f4a2a93e966b6.zip |
Merge pull request #5916 from kmk3/build-improve-dist
build: dist and asc improvements
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 64 |
1 files changed, 37 insertions, 27 deletions
@@ -293,44 +293,54 @@ uninstall: config.mk | |||
293 | @echo "If you want to install a different version of firejail, you might also need to run 'rm -fr $(DESTDIR)$(sysconfdir)/firejail', see #2038." | 293 | @echo "If you want to install a different version of firejail, you might also need to run 'rm -fr $(DESTDIR)$(sysconfdir)/firejail', see #2038." |
294 | 294 | ||
295 | DISTFILES = \ | 295 | DISTFILES = \ |
296 | COPYING \ | 296 | COPYING \ |
297 | Makefile \ | 297 | Makefile \ |
298 | README \ | 298 | README \ |
299 | RELNOTES \ | 299 | RELNOTES \ |
300 | config.mk.in \ | 300 | config.mk.in \ |
301 | config.sh.in \ | 301 | config.sh.in \ |
302 | configure \ | 302 | configure \ |
303 | configure.ac \ | 303 | configure.ac \ |
304 | contrib \ | 304 | contrib \ |
305 | etc \ | 305 | etc \ |
306 | install.sh \ | 306 | install.sh \ |
307 | m4 \ | 307 | m4 \ |
308 | mkdeb.sh \ | 308 | mkdeb.sh \ |
309 | mketc.sh \ | 309 | mketc.sh \ |
310 | platform \ | 310 | platform \ |
311 | src | 311 | src |
312 | 312 | ||
313 | DISTFILES_TEST = test/Makefile test/apps test/apps-x11 test/apps-x11-xorg test/capabilities test/private-lib test/fnetfilter test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/fs test/sysutils | 313 | DISTFILES_TEST = \ |
314 | test/Makefile \ | ||
315 | test/apps \ | ||
316 | test/apps-x11 \ | ||
317 | test/apps-x11-xorg \ | ||
318 | test/capabilities \ | ||
319 | test/compile \ | ||
320 | test/environment \ | ||
321 | test/fcopy \ | ||
322 | test/filters \ | ||
323 | test/fnetfilter \ | ||
324 | test/fs \ | ||
325 | test/network \ | ||
326 | test/private-lib \ | ||
327 | test/profiles \ | ||
328 | test/sysutils \ | ||
329 | test/utils | ||
314 | 330 | ||
315 | .PHONY: dist | 331 | .PHONY: dist |
316 | dist: config.mk | 332 | dist: clean config.mk |
317 | mv config.sh config.sh.old | ||
318 | mv config.status config.status.old | ||
319 | $(MAKE) distclean | ||
320 | mv config.status.old config.status | ||
321 | mv config.sh.old config.sh | ||
322 | rm -fr $(TARNAME)-$(VERSION) $(TARNAME)-$(VERSION).tar.xz | 333 | rm -fr $(TARNAME)-$(VERSION) $(TARNAME)-$(VERSION).tar.xz |
323 | mkdir -p $(TARNAME)-$(VERSION)/test | 334 | mkdir -p $(TARNAME)-$(VERSION)/test |
324 | cp -a $(DISTFILES) $(TARNAME)-$(VERSION) | 335 | cp -a $(DISTFILES) $(TARNAME)-$(VERSION) |
325 | cp -a $(DISTFILES_TEST) $(TARNAME)-$(VERSION)/test | 336 | cp -a $(DISTFILES_TEST) $(TARNAME)-$(VERSION)/test |
326 | rm -rf $(TARNAME)-$(VERSION)/src/tools | 337 | rm -rf $(TARNAME)-$(VERSION)/src/tools |
327 | find $(TARNAME)-$(VERSION) -name .svn -delete | ||
328 | tar -cJvf $(TARNAME)-$(VERSION).tar.xz $(TARNAME)-$(VERSION) | 338 | tar -cJvf $(TARNAME)-$(VERSION).tar.xz $(TARNAME)-$(VERSION) |
329 | rm -fr $(TARNAME)-$(VERSION) | 339 | rm -fr $(TARNAME)-$(VERSION) |
330 | 340 | ||
331 | .PHONY: asc | 341 | .PHONY: asc |
332 | asc: config.mk | 342 | asc: config.sh |
333 | ./mkasc.sh $(VERSION) | 343 | ./mkasc.sh |
334 | 344 | ||
335 | .PHONY: deb | 345 | .PHONY: deb |
336 | deb: dist config.sh | 346 | deb: dist config.sh |