mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-11-04 20:08:00 +00:00
26 lines
683 B
Makefile
26 lines
683 B
Makefile
SUBDIRS = src conf installer
|
|
|
|
NAME = epple2
|
|
VERSION = 1.0
|
|
ARCH = i386
|
|
|
|
EXTRA_DIST = COPYING.sdl COPYING.other epple2.spec
|
|
|
|
RPM := $(abspath rpm)
|
|
|
|
package: $(NAME).spec dist
|
|
mkdir -p $(RPM)/BUILD
|
|
mkdir -p $(RPM)/BUILDROOT
|
|
mkdir -p $(RPM)/RPMS
|
|
mkdir -p $(RPM)/SOURCES
|
|
mkdir -p $(RPM)/SPECS
|
|
mkdir -p $(RPM)/SRPMS
|
|
mkdir -p $(RPM)/VPATH
|
|
cp $(NAME)-$(VERSION).tar.gz $(RPM)/SOURCES
|
|
touch .rpmmacros
|
|
echo "%_prefix $(prefix)" >>$(RPM)/.rpmmacros
|
|
echo "%_sysconfdir $(sysconfdir)" >>$(RPM)/.rpmmacros
|
|
echo "%_topdir $(RPM)" >>$(RPM)/.rpmmacros
|
|
HOME=$(RPM) rpmbuild -ba --clean --buildroot $(RPM)/BUILDROOT $<
|
|
fakeroot alien $(RPM)/RPMS/$(ARCH)/$(NAME)-$(VERSION)-1.$(ARCH).rpm
|