forge-srpm-macros/Makefile

26 lines
629 B
Makefile
Raw Permalink Normal View History

2023-03-27 14:26:16 -05:00
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
#
# SPDX-License-Identifier: GPL-1.0-or-later
2023-03-27 10:32:59 -05:00
# vim: set ts=4:
PREFIX := /usr
RPMMACRODIR := $(PREFIX)/lib/rpm/macros.d
RPMLUADIR := $(PREFIX)/lib/rpm/lua
2024-03-02 17:53:39 +00:00
# Install the macros
2023-03-27 10:32:59 -05:00
install:
install -Dpm 0644 rpm/macros.d/macros.* -t $(DESTDIR)$(RPMMACRODIR)/
install -Dpm 0644 rpm/lua/fedora/srpm/*.lua -t $(DESTDIR)$(RPMLUADIR)/fedora/srpm/
2024-03-02 17:53:39 +00:00
# Rename macros so they can be packaged for EPEL without conflicting with EL's
# forge macros
epel-build:
./tools/epel_build.sh
2024-03-02 17:53:39 +00:00
epel-install:
$(MAKE) -C epel -f ../Makefile install
2024-03-02 17:53:39 +00:00
epel: epel-build epel-install
2024-03-02 17:53:39 +00:00
clean:
rm -rf epel9/