Project

General

Profile

Download (2.97 KB) Statistics
| Branch: | Revision:

hachette / Makefile.in @ master

1
# This file is part of Haketilo
2
#
3
# Copyright (C) 2021, jahoti
4
#
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the CC0 1.0 Universal License as published by
7
# the Creative Commons Corporation.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# CC0 1.0 Universal License for more details.
13

    
14
SHELL = /bin/sh
15
VPATH = <<VPATH>>
16

    
17
version = <<VERSION>>
18
extension_files = background/ common/ content/ html/ licenses/ \
19
        copyright default_settings.json manifest.json
20

    
21
metafiles = build.sh configure Makefile.in process_html_file.sh README.txt \
22
        re-generate_icons.sh shell_utils.sh upload_amo.sh write_makefile.sh
23

    
24
# Configuration goes here
25

    
26
# The default target: placed up here
27
default: $(default_target)
28

    
29
.PHONY: mozilla install-mozilla chromium install-chromium \
30
        all all-unpacked default unpacked \
31
        install install-html install-dvi install-pdf install-ps uninstall \
32
        install-strip clean distclean mostlyclean maintainer-clean TAGS info \
33
        dvi html pdf ps dist check installcheck installdirs
34

    
35
# core files
36
icons/haketilo16.png: icons/haketilo.svg
37
	cd "$(srcdir)" && ./re-generate_icons.sh
38
# Use haketilo16.png as an "index" for all the icon PNGs
39

    
40
# browser-specific targets
41
all: mozilla chromium
42
mozilla: mozilla-build.zip
43
chromium: chromium-build.zip
44

    
45
unpacked: $(default_target)-unpacked
46
all-unpacked: mozilla-unpacked chromium-unpacked
47
%-unpacked: $(extension_files) icons/haketilo16.png
48
	$(srcdir)/build.sh $* $(srcdir) $(UPDATE_URL)
49

    
50
install install-strip: $(default_target)-unpacked
51
	cp -R $(default_target)-unpacked \
52
	"$(DESTDIR)/{6fe13369-88e9-440f-b837-5012fb3bedec}"
53

    
54
uninstall:
55
	rm -r "$(DESTDIR)/{6fe13369-88e9-440f-b837-5012fb3bedec}"
56

    
57
%-build.zip: %-unpacked
58
	cd $< && zip -q -r ../$@ *
59

    
60

    
61
# helper targets
62
clean mostlyclean:
63
	rm -rf mozilla-unpacked chromium-unpacked haketilo-$(version)
64
	rm -f mozilla-build.zip chromium-build.zip haketilo-$(version).tar.gz \
65
	        haketilo-$(version).tar
66

    
67
distclean: clean
68
	rm -f Makefile config.status record.conf
69

    
70
maintainer-clean: distclean
71
	@echo 'This command is intended for maintainers to use; it'
72
	@echo 'deletes files that may need special tools to rebuild.'
73
	rm -f "$(srcdir)"/icons/*.png
74

    
75
dist: $(extension_files) $(metafiles) icons/haketilo16.png
76
	test -d haketilo-$(version) || mkdir haketilo-$(version)
77
	for file in $(extension_files) $(metafiles) icons/; do \
78
	    cp -R "$(srcdir)"/$$file haketilo-$(version); \
79
	done
80
	tar cf haketilo-$(version).tar haketilo-$(version)
81
	gzip haketilo-$(version).tar
82

    
83
# Files for constructing the makefile
84
Makefile: config.status Makefile.in record.conf
85
	./config.status
86

    
87
config.status: write_makefile.sh
88
	cp "$(srcdir)"/write_makefile.sh config.status
89

    
90
# Unused GNU-specified targets
91
install-html:
92
install-dvi:
93
install-pdf:
94
install-ps:
95
TAGS:
96
info:
97
dvi:
98
html:
99
pdf:
100
ps:
101
check:
102
installcheck:
103
installdirs:
(2-2/13)