File: Makefile-deb

package info (click to toggle)
opencfu 4.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 35,892 kB
  • sloc: xml: 75,498; cpp: 6,777; makefile: 214; ruby: 13
file content (20 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DEBIAN_FILE := ./debian/
TARBALL:=$(shell ls | grep  \.tar\.gz)
PROG_DIR := $(shell echo $(TARBALL) | sed s/".orig.tar.gz"// | sed s/"_"/"-"/)
all: $(PROG_DIR)
	echo $(PROG_DIR)
	echo $(TARBALL)
	rm -rf  $(PROG_DIR)/$(DEBIAN_FILE)
	cp -r  $(DEBIAN_FILE)  $(PROG_DIR)
#	cd $(PROG_DIR)  && debuild -us -uc -d
	cd $(PROG_DIR)  && dpkg-buildpackage -us -uc -d

$(PROG_DIR): 
	tar -xf *.tar.gz