
Makes the Makefile easier to write and the output a little nicer. Inspired by a similar tool ;-)
20 lines
392 B
Makefile
20 lines
392 B
Makefile
system_conf = $(CHROOT)/etc/mysql/my.cnf
|
|
root_conf = $(CHROOT)/root/.my.cnf
|
|
|
|
preinstall:
|
|
|
|
$(system_conf): my.cnf
|
|
cp my.cnf $(system_conf)
|
|
|
|
$(root_conf): my.cnf.root
|
|
cp my.cnf.root $(root_conf)
|
|
chmod 0600 $(root_conf)
|
|
|
|
postinstall: $(system_conf) $(root_conf)
|
|
rm -rf $(CHROOT)/var/lib/mysql
|
|
RUN bash -c 'yes gentoo | emerge --config dev-db/mariadb'
|
|
RUN systemctl enable mariadb
|
|
|
|
clean:
|
|
|