File: Makefile.dev

package info (click to toggle)
coccinelle 1.0.8.deb-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 26,148 kB
  • sloc: ml: 136,392; ansic: 23,594; sh: 2,189; makefile: 2,157; perl: 1,576; lisp: 840; python: 823; awk: 70; csh: 12
file content (59 lines) | stat: -rw-r--r-- 2,436 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This file is part of Coccinelle, licensed under the terms of the GPL v2.
# See copyright.txt in the Coccinelle source code for more information.
# The Coccinelle source code can be obtained at http://coccinelle.lip6.fr

##############################################################################
# Website targets
##############################################################################

WEBBASE=~/website
WEBSITE=$(WEBBASE)/distrib

website:
	cp $(TMP)/$(PACKAGE).tgz                $(WEBSITE)
	cp $(TMP)/$(PACKAGE)-bin-x86.tgz        $(WEBSITE)
#	cp $(TMP)/$(PACKAGE)-bin-x86-static.tgz $(WEBSITE)
	cp $(TMP)/$(PACKAGE)-bin-x86-python.tgz $(WEBSITE)
	cp $(TMP)/$(PACKAGE)-bin-bytecode-$(OCAMLVERSION).tgz          $(WEBSITE)
	cp $(TMP)/$(PACKAGE)-bin-bytecode-$(OCAMLVERSION)-python.tgz   $(WEBSITE)
	cd $(WEBSITE); svn add $(PACKAGE).tgz               \
		$(PACKAGE)-bin-x86.tgz                      \
		$(PACKAGE)-bin-x86-python.tgz               \
		$(PACKAGE)-bin-bytecode-$(OCAMLVERSION).tgz \
		$(PACKAGE)-bin-bytecode-$(OCAMLVERSION)-python.tgz
#		$(PACKAGE)-bin-x86-static.tgz
	$(MAKE) -C docs/manual WEBBASE=$(WEBBASE) install
	@echo "\nYou need to manually update those files:\n"
	@echo "\t$(WEBBASE)/download.php"
	@echo "\t$(WEBSITE)/change.html\n"
	@echo "Then commit the changes.\n"
#	rm -f $(WEBSITE)/LATEST* $(WEBSITE)/coccinelle-latest.tgz
#	cp changes.txt $(WEBSITE)/changes-$(VERSION).txt
#	cd $(WEBSITE); touch LATEST_IS_$(VERSION); ln -s $(PACKAGE).tgz coccinelle-latest.tgz
#	cp readme.txt $(WEBSITE)

##############################################################################
# Targets to update PPA
##############################################################################

# precise - 12.04
# saucy - 13.10
# trusty - 14.04
BRANCH=$(shell git symbolic-ref --short -q HEAD | sed 's|ubuntu/||')
RELEASE=$(shell echo $(BRANCH) | cut -f1 -d'-')
CODENAME=$(shell echo $(BRANCH) | cut -f2 -d'-')
IDX?=1

.PHONY:: ubuntu

ubuntu:
	@echo "Preparing package for Ubuntu $(CODENAME) - $(RELEASE)"
	if [ ! -f debian/changelog ] ; then \
		debchange --create -c debian/changelog -D $(CODENAME) --package $(PRJNAME) \
			-v $(VERSION)~$(RELEASE)npalix$(IDX) "New release $(VERSION)"; \
	else \
		debchange -c debian/changelog -D $(CODENAME) \
			-v $(VERSION)~$(RELEASE)npalix$(IDX) "New release $(VERSION)"; \
	fi
	@echo "\nYou can now build the Ubuntu source package with\n"
	@echo "\tmake packsrc\n"